<template>
  <div class="left-atlas-container">
    <div class="left-atlas-container-item">
        <div class="title">
            <span>动漫</span>
            <span>更多</span>
        </div>

        <div class="out-container" v-for="(item, index) in list[name]" :key="index">
            <img :src="item" alt=""/>
        </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { onMounted, ref } from "vue";
import router from '../../router/index.js';
import { atlasList } from '../../assets/constant.js';


const list = ref([]);
const name = ref("");

onMounted(() => {
    const urlSearchParams = new URL(location.href).searchParams;
    name.value = urlSearchParams.get('name')

    list.value = atlasList;
});

</script>

<style lang="less" scoped>
.left-atlas-container {
    padding: 20px 30px 0;
    width: 100%;
    box-sizing: border-box;
    .left-atlas-container-item {
        width: 100%;
        .title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            span {
                font-size: 20px;
                color: #fff;
            }
        }
        .out-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 20px;
            img {
                width: 70%;
                height: 70%;
            }
        }
    }
}
</style>